Skip to content

Log error on accessing non-initialized lifetime #504

Merged
ForNeVeR merged 3 commits intomasterfrom
usov/lifetime-diagnostics
Jan 16, 2025
Merged

Log error on accessing non-initialized lifetime #504
ForNeVeR merged 3 commits intomasterfrom
usov/lifetime-diagnostics

Conversation

@Iliya-usov
Copy link
Copy Markdown
Collaborator

No description provided.

@ulex
Copy link
Copy Markdown
Collaborator

ulex commented Jan 15, 2025

Have you tried running Rider or ReSharper with this patch applied? I have a feeling that a lot of things will be broken, but I agree this change overall

@Iliya-usov
Copy link
Copy Markdown
Collaborator Author

Have you tried running Rider or ReSharper with this patch applied? I have a feeling that a lot of things will be broken, but I agree this change overall

No, but if it's too hard to fix everything during the merge, I'll disable that assertion on the Rider/R# side and then re-enable it after all the problems are fixed.

Fix tests

Check IsInitialized in ValueLifetimed + add an assertion that the passed lifetime is initialized
@Iliya-usov Iliya-usov force-pushed the usov/lifetime-diagnostics branch from 1145b3b to 87fa5f6 Compare January 15, 2025 15:11
@Iliya-usov Iliya-usov requested a review from ForNeVeR January 16, 2025 09:33
@Iliya-usov Iliya-usov assigned Iliya-usov and unassigned ForNeVeR Jan 16, 2025
@ForNeVeR ForNeVeR merged commit 12a68a9 into master Jan 16, 2025
@ForNeVeR ForNeVeR deleted the usov/lifetime-diagnostics branch January 16, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants